// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi space 
// Source File Name:   Rectangle.java

package com.java4less.rchart.gc;


public class Rectangle
{

	public int x;
	public int y;
	public int w;
	public int h;

	public Rectangle(int x, int y, int w, int h)
	{
		this.x = x;
		this.y = y;
		this.w = w;
		this.h = h;
	}

	public boolean contains(int x1, int y1)
	{
		return x1 >= x && x1 <= x + w && y1 >= y && y1 <= y + h;
	}

	public boolean intersects(Rectangle r)
	{
		return r.x + r.w > x && r.y + r.h > y && r.x < x + w && r.y < y + h;
	}
}
